package org.jeecg.modules.monitoring.j_monitoring.service;

import org.jeecg.modules.monitoring.j_monitoring.entity.MDocumentManagement;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.monitoring.j_monitoring.vo.DocTreeNode;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 文档管理
 * @Author: xiaoyq
 * @Date:   2023-06-26
 * @Version: V1.0
 */
public interface IMDocumentManagementService extends IService<MDocumentManagement> {

	/**
	 * 添加一对多
	 *
	 * @param mDocumentManagement
	 */
	public void saveMain(MDocumentManagement mDocumentManagement) ;

	/**
	 * 修改一对多
	 *
	 * @param mDocumentManagement
	 */
	public void updateMain(MDocumentManagement mDocumentManagement);

	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);

	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

    List<DocTreeNode> searchByKeyWord(String keyWord, String parentId);
}
